set(FFmpeg_FIND_COMPONENTS AVCODEC AVDEVICE AVFORMAT AVFILTER AVUTIL POSTPROC SWSCALE)
find_package(FFmpeg REQUIRED)
foreach(_ffmpeg_compomemt ${FFmpeg_FIND_COMPONENTS})
    if (${_ffmpeg_compomemt}_FOUND)
        message(STATUS "${_ffmpeg_compomemt} Found Version = " ${${_ffmpeg_compomemt}_VERSION})
    else(${_ffmpeg_compomemt}_FOUND)
        message(STATUS "${_ffmpeg_compomemt} Not Found")
    endif()
endforeach(_ffmpeg_compomemt)

add_executable(ffmpeg_hello_world 0_hello_world.c)
target_include_directories(ffmpeg_hello_world PRIVATE ${AVFORMAT_INCLUDE_DIRS} ${AVCODEC_INCLUDE_DIRS} ${AVUTIL_INCLUDE_DIRS})
target_link_libraries(ffmpeg_hello_world ${AVFORMAT_LIBRARIES} ${AVCODEC_LIBRARIES} ${AVUTIL_LIBRARIES})
